package nl.boelen.game.handler.keys;

public abstract class Key {
    protected boolean isPressed = false;
    protected String keyName = "";
    protected int timesPressed = 0;
    
    protected byte id;
    protected boolean hasAlpha;
    
    public Key(String name) {
        this.keyName = name;
    }

    public int getTimesPressed() {
        return timesPressed;
    }

    public String getKeyName() {
        return keyName;
    }

    public boolean isPressed() {
        return isPressed;
    }

    public abstract void toggle(boolean pressed);
}
